]> dgit.raspbian.org Git - gnome-shell.git/commit
st-shadow: Ceil size before comparing with texture
authorJonas Ådahl <jadahl@gmail.com>
Thu, 26 Oct 2017 09:15:46 +0000 (11:15 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Fri, 1 Mar 2019 17:12:52 +0000 (17:12 +0000)
commit5d4a804c90ef824f7edc76d460cd4dd495b5df15
tree745e915823b216285c7d6e7ce094fb0dff3872b2
parent6bc3300e5a3d828be546149df9adf77bf6c2efd6
st-shadow: Ceil size before comparing with texture

A fractional resource scale would mean we never use the fast path for
creating the shadow, because we'd cast the int to a float before
comparing, which would never match.

Instead compare the expected texture size with the source texture, to
actually potentially trigger the fast path.

https://bugzilla.gnome.org/show_bug.cgi?id=765011
src/st/st-private.c